package com.geekbang.rpcfx.client.call;

import com.geekbang.rpcfx.api.RpcfxRequest;
import com.geekbang.rpcfx.api.RpcfxResponse;
import okhttp3.MediaType;

import java.io.IOException;

/**
 * @author nhsoft.lul
 */
public interface RpcCall {

    MediaType JSONTYPE = MediaType.get("application/json; charset=utf-8");

    <T> RpcfxResponse post(RpcfxRequest<T> request, String url) throws IOException;
}
